<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
    <h:head>
        <title>IGNORED</title>
    </h:head>
    <h:body>
        <h:form>
            <div style="margin-left: 600px;">
                <rich:message/>
            </div>
            
            <center>
                <rich:graphValidator value="#{loginZhBean}" id="gv">
                    <h:panelGrid id="register" columns="3">
                        <h:outputLabel for="userName" value="用户名："/> 
                        <h:inputText id="userName" value="#{loginZhBean.user.userName}" required="false">
                            <rich:validator/>
                        </h:inputText>
                        <rich:message for="userName"/>

                        <h:outputLabel for="pwd" value="密码：" />
                        <h:inputSecret id="pwd" value="#{loginZhBean.user.pwd}" required="false"/>
                        <rich:message for="pwd"/>
                    </h:panelGrid>

                    <h:commandButton value="登录" action="#{loginZhBean.login}"/>
                    <a href="http://localhost:8080/cea_130531/register.jsf">注册</a>
                </rich:graphValidator>
            </center>
        </h:form>
    </h:body>
</html>